#!/bin/bash

# The application must be running for this script to work.

SESSION_ID="test-session-123"
ROLE="用户"
NAME="Jim"
CONTENT="我头痛"
RECEIVER="Bob"

HOST="localhost:8080"

echo "Sending chat request..."

curl -X POST "http://$HOST/agent/chat" \
  --data-urlencode "sessionId=$SESSION_ID" \
  --data-urlencode "role=$ROLE" \
  --data-urlencode "name=$NAME" \
  --data-urlencode "content=$CONTENT" \
  --data-urlencode "receiver=$RECEIVER"

echo "\nDone."

